<?php
	require('Header_iframe.php');
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/livevalidate.css" />
<script type="text/javascript" src="js/livevalidation.js"></script>
<script type="text/javascript" src="js/dib-2.0.pack.js"></script>

<script type="text/javascript" src="tabber/tabber.js"></script>
<link rel="stylesheet" href="tabber/example.css" TYPE="text/css" MEDIA="screen">
<link rel="stylesheet" href="tabber/example-print.css" TYPE="text/css" MEDIA="print">

<script type="text/javascript" src="prototype_js/prototype-1.6.0.3.js"></script>
<script type="text/javascript">
function addStudentCourse() {
    new Ajax.Request("ajax_requests/addStudentCourse.php", 
    { 
           method: 'post', 
           postBody: 'studentULinkID='+ $F('studentULinkID')+ '&studentCourseDept='+$F('studentCourseDept')+ '&studentCourseNum='+ $F('studentCourseNum'),
           onComplete: showStudentCourseResponse
    });
}

function showStudentCourseResponse(req){
    $('showStudentCourse').innerHTML= req.responseText;
}

function sendRequest() {
    new Ajax.Request("ajax_requests/addCourse.php", 
    { 
           method: 'post', 
           postBody: 'courseDepartment='+ $F('courseDepartment')+ '&courseNumber='+$F('courseNumber')+ '&courseName='+ $F('courseName'),
           onComplete: showResponse 
    });
}

function showResponse(req){
    $('show').innerHTML= req.responseText;
}

function sendViewRoster() {
    new Ajax.Request("ajax_requests/viewRoster.php", 
    { 
           method: 'post', 
           postBody: 'viewRosterDept='+ $F('viewRosterDept')+ '&viewRosterNum='+$F('viewRosterNum'),
           onComplete: showRosterRep 
    });
}

function showRosterRep(req){
    $('showRoster').innerHTML= req.responseText;
}

function sendRemoveCourse() {
    new Ajax.Request("ajax_requests/sendRemoveCourse.php", 
    { 
           method: 'post', 
           postBody: 'removeDept='+ $F('removeDept')+ '&removeNum='+$F('removeNum'),
           onComplete: showRemoveRep 
    });
}

function showRemoveRep(req){
    $('showRemoveCourse').innerHTML= req.responseText;
}

function showAllCourses() {
    new Ajax.Request("ajax_requests/showAllCourses.php", 
    { 
           method: 'post', 
           onComplete: showAllCoursesRep 
    });
}

function showAllCoursesRep(req){
    $('showAllCoursesDiv').innerHTML= req.responseText;
}

function viewUserRecord() {
    new Ajax.Request("ajax_requests/viewRecord.php", 
    { 
           method: 'post', 
           postBody: 'firstName='+ $F('firstName')+ '&lastName='+$F('lastName'),
           onComplete: recordResponse 
    });
}

function recordResponse(req){
   /* var browserName=navigator.appName; 
    if (browserName=="Microsoft Internet Explorer"){
    alert(req.responseText);
    $('showUserRecord').update(req.responseText);
    }
    else*/
    $('showUserRecord').update(req.responseText);
    //$('showUserRecord').innerHTML= $('showUserRecord').innerHTML;

    //document.getElementById('showUserRecord').innerHTML= req.responseText;
}

function viewUserCourses() {
    new Ajax.Request("ajax_requests/viewCourses.php", 
    { 
           method: 'post', 
           postBody: 'ulinkID='+ $F('courseULinkID'),
           onComplete: courseResponse 
    });
}

function courseResponse(req){
    $('showUserCourses').update(req.responseText);
}

function resetULink() {
    new Ajax.Request("ajax_requests/resetULink.php", 
    { 
           method: 'post', 
           postBody: 'facebookID='+ $F('facebookID')+ '&resetULinkID='+$F('resetULinkID') + '&resetStudentID='+$F('resetStudentID'),
           onComplete: resetULinkResponse 
    });
}

function resetULinkResponse(req){
    $('resetUserULink').update(req.responseText);
}

function banUser() {
    new Ajax.Request("ajax_requests/banUser.php", 
    { 
           method: 'post', 
           postBody: 'banID='+ $F('banID'),
           onComplete: banUserResponse 
    });
}

function banUserResponse(req){
    $('banUserDiv').update(req.responseText);
}

function unbanUser() {
    new Ajax.Request("ajax_requests/unbanUser.php", 
    { 
           method: 'post', 
           postBody: 'unbanID='+ $F('unbanID'),
           onComplete: unbanUserResponse 
    });
}

function unbanUserResponse(req){
    $('unbanUserDiv').update(req.responseText);
}

function sendAddTutor() {
    new Ajax.Request("ajax_requests/addTutor.php", 
    { 
           method: 'post', 
           postBody: 'addTutorULink='+ $F('addTutorULink'),
           onComplete: viewAddTutor 
    });
}

function viewAddTutor(req){
    $('showAddTutor').innerHTML= req.responseText;
}

function sendRemoveTutor() {
    new Ajax.Request("ajax_requests/removeTutor.php", 
    { 
           method: 'post', 
           postBody: 'removeTutorULink='+ $F('removeTutorULink'),
           onComplete: viewRemoveTutor 
    });
}

function viewRemoveTutor(req){
    $('showRemoveTutor').innerHTML= req.responseText;
}

function sendAddAdmin() {
    new Ajax.Request("ajax_requests/addAdmin.php", 
    { 
           method: 'post', 
           postBody: 'addAdminULink='+ $F('addAdminULink'),
           onComplete: viewAddAdmin 
    });
}

function viewAddAdmin(req){
    $('showAddAdmin').innerHTML= req.responseText;
}

function sendRemoveAdmin() {
    new Ajax.Request("ajax_requests/removeAdmin.php", 
    { 
           method: 'post', 
           postBody: 'removeAdminULink='+ $F('removeAdminULink'),
           onComplete: viewRemoveAdmin 
    });
}

function viewRemoveAdmin(req){
    $('showRemoveAdmin').innerHTML= req.responseText;
}
</script>
</head>

<body >
<table width=100% >
<tr><td>
<th> Reach Administration </th>
</tr></td>
</table>

<div class="tabber">

     <div class="tabbertab">
	  <h2>Users</h2>
	  <p><b>Add User to Course:</b> 
        <form id="addcourse" onsubmit="return false;" method="post">
        <table class="small">
        <tr>
            <td>
            &nbsp;&nbsp;&nbsp;ULink ID:
            </td><td>
            <input type="text" id="studentULinkID" name="studentULinkID"> 
            <script type ="text/javascript">
            var f1 = new LiveValidation("studentULinkID", { validMessage: " Good!", wait: 500 } );
            f1.add( Validate.Presence, 
                          { failureMessage: " Can't be empty!" } );
            f1.add( Validate.Presence );
            f1.add( Validate.Length, {minimum:6, maximum: 10});
            f1.add( Validate.Length );
            </script>
            </td>
        </tr>
        <tr>
            <td>
            &nbsp;&nbsp;&nbsp;Course Department:
            </td><td>
            <input type="text" id="studentCourseDept" name="studentCourseDept"> 
            <script type ="text/javascript">
            var f1 = new LiveValidation("studentCourseDept", { validMessage: " Good!", wait: 500 } );
            f1.add( Validate.Presence, 
                          { failureMessage: " Can't be empty! example: CECS" } );
            f1.add( Validate.Presence );
            f1.add( Validate.Length, {minimum:2, maximum: 5});
            f1.add( Validate.Length );
            </script>
            </td>
        </tr>
        <tr>
            <td>
            &nbsp;&nbsp;&nbsp;Course Number:
            </td><td>
            <input type="text" id="studentCourseNum" name="studentCourseNum"> 
            <script type ="text/javascript">
            var f1 = new LiveValidation("studentCourseNum", { validMessage: " Good!", wait: 500 } );
            f1.add( Validate.Presence, 
                          { failureMessage: " Can't be empty! example: 440" } );
            f1.add( Validate.Presence );
            f1.add( Validate.Length, {minimum:3, maximum: 5});
            f1.add( Validate.Length );
            f1.add( Validate.Numericality, { onlyInteger: true } );
            </script>
            </td>
        </tr>
        <tr><td></td><td>
        <input type="submit" value="submit" onClick="addStudentCourse()" >
        </td></tr>
      </table>
      </form>
      <div id="showStudentCourse"></div>

      </p>
      <p><b>View User Record: </b>
        <form id="viewRecord" onsubmit="return false;" method="post">
        <table class="small">
        <tr>
            <td>
            &nbsp;&nbsp;&nbsp;First Name:
            </td><td>
            <input type="text" id="firstName" name="firstName"> 
            <script type ="text/javascript">
            var f1 = new LiveValidation("firstName", { validMessage: " Good!", wait: 500 } );
            f1.add( Validate.Presence, 
                          { failureMessage: " Can't be empty!" } );
            f1.add( Validate.Presence );
            f1.add( Validate.Length, {minimum:1, maximum: 30});
            f1.add( Validate.Length );
            </script>
            </td>
        </tr>
        <tr>
            <td>
            &nbsp;&nbsp;&nbsp;Last Name:
            </td><td>
            <input type="text" id="lastName" name="lastName"> 
            <script type ="text/javascript">
            var f1 = new LiveValidation("lastName", { validMessage: " Good!", wait: 500 } );
            f1.add( Validate.Presence, 
                          { failureMessage: " Can't be empty!" } );
            f1.add( Validate.Presence );
            f1.add( Validate.Length, {minimum:1, maximum: 30});
            f1.add( Validate.Length );
            </script>
            </td>
        </tr>
        <tr><td></td><td>
        <input type="submit" value="submit" onClick="viewUserRecord()" >
        </td></tr>
      </table>
      </form>
      <div id="showUserRecord"></div>
      <p><b>View User Courses: </b>
        <form id="viewCourses" onsubmit="return false;" method="post">
        <table class="small">
        <tr>
            <td>
            &nbsp;&nbsp;&nbsp;ULink ID:
            </td><td>
            <input type="text" id="courseULinkID" name="courseULinkID"> 
            <script type ="text/javascript">
            var f1 = new LiveValidation("courseULinkID", { validMessage: " Good!", wait: 500 } );
            f1.add( Validate.Presence, 
                          { failureMessage: " Can't be empty!" } );
            f1.add( Validate.Presence );
            f1.add( Validate.Length, {minimum:1, maximum: 30});
            f1.add( Validate.Length );
            </script>
            </td>
        </tr>
        <tr><td></td><td>
        <input type="submit" value="submit" onClick="viewUserCourses()" >
        </td></tr>
      </table>
      </form>
      <div id="showUserCourses"></div>
      <p><b>Reset User Ulink/Student id:</b> 
        <form id="resetULink" onsubmit="return false;" method="post">
        <table class="small">
        <tr>
            <td>
            &nbsp;&nbsp;&nbsp;Facebook ID:
            </td><td>
            <input type="text" id="facebookID" name="facebookID"> 
            <script type ="text/javascript">
            var f1 = new LiveValidation("facebookID", { validMessage: " Good!", wait: 500 } );
            f1.add( Validate.Presence, 
                          { failureMessage: " Can't be empty!" } );
            f1.add( Validate.Presence );
            f1.add( Validate.Length, {minimum:1, maximum: 12});
            f1.add( Validate.Length );
            f1.add( Validate.Numericality, { onlyInteger: true } );
            </script>
            </td>
        </tr>
        <tr>
            <td>
            &nbsp;&nbsp;&nbsp;New ULink ID:
            </td><td>
            <input type="text" id="resetULinkID" name="resetULinkID"> 
            <script type ="text/javascript">
            var f1 = new LiveValidation("resetULinkID", { validMessage: " Good!", wait: 500 } );
            f1.add( Validate.Presence, 
                          { failureMessage: " Can't be empty!" } );
            f1.add( Validate.Presence );
            f1.add( Validate.Length, {minimum:7, maximum: 10});
            f1.add( Validate.Length );
            </script>
            </td>
        </tr>
        <tr>
            <td>
            &nbsp;&nbsp;&nbsp;New Student ID:
            </td><td>
            <input type="text" id="resetStudentID" name="resetStudentID"> 
            <script type ="text/javascript">
            var f1 = new LiveValidation("resetStudentID", { validMessage: " Good!", wait: 500 } );
            f1.add( Validate.Presence, 
                          { failureMessage: " Can't be empty!" } );
            f1.add( Validate.Presence );
            f1.add( Validate.Length, {minimum:6, maximum: 10});
            f1.add( Validate.Length );
            f1.add( Validate.Numericality, { onlyInteger: true } );
            </script>
            </td>
        </tr>
        <tr><td></td><td>
        <input type="submit" value="submit" onClick="resetULink()" >
        </td></tr>
      </table>
      </form>
      <div id="resetUserULink"></div>
      </p>
     </div>

     <div class="tabbertab">
	  <h2>University Courses</h2>
	  <p><b> Add new course:</b> <br>
        <form id="test" onsubmit="return false;" method="post">
        <table class="small">
        <tr>
            <td>
            &nbsp;&nbsp;&nbsp;Course Department:
            </td><td>
            <input type="text" id="courseDepartment" name="courseDepartment"> 
            <script type ="text/javascript">
            var f1 = new LiveValidation("courseDepartment", { validMessage: " Good!", wait: 500 } );
            f1.add( Validate.Presence, 
                          { failureMessage: " Can't be empty! example: CECS" } );
            f1.add( Validate.Presence );
            f1.add( Validate.Length, {minimum:2, maximum: 6});
            f1.add( Validate.Length );
            </script>
            </td>
        </tr>
        <tr>
            <td>
            &nbsp;&nbsp;&nbsp;Course Number:
            </td><td>
            <input type="text" id="courseNumber" name="courseNumber"> 
            <script type ="text/javascript">
            var f1 = new LiveValidation("courseNumber", { validMessage: " Good!", wait: 500 } );
            f1.add( Validate.Presence, 
                          { failureMessage: " Can't be empty! example: 440" } );
            f1.add( Validate.Presence );
            f1.add( Validate.Length, {minimum:2, maximum: 4});
            f1.add( Validate.Length );
            f1.add( Validate.Numericality, { onlyInteger: true } );
            </script>
            </td>
        </tr>
        <tr>
            <td>
            &nbsp;&nbsp;&nbsp;Course Name:
            </td><td>
            <input type="text" id="courseName" name="courseName"> 
            <script type ="text/javascript">
            var f1 = new LiveValidation("courseName", { validMessage: " Good!", wait: 500 } );
            f1.add( Validate.Presence, 
                          { failureMessage: " Can't be empty! example: Object Oriented Design" } );
            f1.add( Validate.Presence );
            f1.add( Validate.Length, {minimum:2, maximum: 30});
            f1.add( Validate.Length );
            </script>
            </td>
        </tr>
        <tr><td></td><td>
        <input type="submit" value="submit" onClick="sendRequest()" >
        </td></tr>
      </table>
      </form>
      <div id="show"></div>
      </p>
	  <p><b>Show Students in Course: </b> 
        <form id="roster" onsubmit="return false;" method="post">
        <table class="small">
        <tr>
            <td>
            &nbsp;&nbsp;&nbsp;Course Department:
            </td><td>
            <input type="text" id="viewRosterDept" name="viewRosterDept"> 
            <script type ="text/javascript">
            var f1 = new LiveValidation("viewRosterDept", { validMessage: " Good!", wait: 500 } );
            f1.add( Validate.Presence, 
                          { failureMessage: " Can't be empty! example: CECS" } );
            f1.add( Validate.Presence );
            f1.add( Validate.Length, {minimum:2, maximum: 6});
            f1.add( Validate.Length );
            </script>
            </td>
        </tr>
        <tr>
            <td>
            &nbsp;&nbsp;&nbsp;Course Number:
            </td><td>
            <input type="text" id="viewRosterNum" name="viewRosterNum"> 
            <script type ="text/javascript">
            var f1 = new LiveValidation("viewRosterNum", { validMessage: " Good!", wait: 500 } );
            f1.add( Validate.Presence, 
                          { failureMessage: " Can't be empty! example: 440" } );
            f1.add( Validate.Presence );
            f1.add( Validate.Length, {minimum:2, maximum: 4});
            f1.add( Validate.Length );
            f1.add( Validate.Numericality, { onlyInteger: true } );
            </script>
            </td>
        </tr>
        <tr><td></td><td>
        <input type="submit" value="submit" onClick="sendViewRoster()" >
        </td></tr>
      </table>
      </form>
      <div id="showRoster"></div>
      </p>
	  <p><b>Remove Course: </b> 
        <form id="remove" onsubmit="return false;" method="post">
        <table class="small">
        <tr>
            <td>
            &nbsp;&nbsp;&nbsp;Course Department:
            </td><td>
            <input type="text" id="removeDept" name="removeDept"> 
            <script type ="text/javascript">
            var f1 = new LiveValidation("removeDept", { validMessage: " Good!", wait: 500 } );
            f1.add( Validate.Presence, 
                          { failureMessage: " Can't be empty! example: CECS" } );
            f1.add( Validate.Presence );
            f1.add( Validate.Length, {minimum:2, maximum: 6});
            f1.add( Validate.Length );
            </script>
            </td>
        </tr>
        <tr>
            <td>
            &nbsp;&nbsp;&nbsp;Course Number:
            </td><td>
            <input type="text" id="removeNum" name="removeNum"> 
            <script type ="text/javascript">
            var f1 = new LiveValidation("removeNum", { validMessage: " Good!", wait: 500 } );
            f1.add( Validate.Presence, 
                          { failureMessage: " Can't be empty! example: 440" } );
            f1.add( Validate.Presence );
            f1.add( Validate.Length, {minimum:2, maximum: 4});
            f1.add( Validate.Length );
            f1.add( Validate.Numericality, { onlyInteger: true } );
            </script>
            </td>
        </tr>
        <tr><td></td><td>
        <input type="submit" value="submit" onClick="sendRemoveCourse()" >
        </td></tr>
      </table>
      </form>
      <div id="showRemoveCourse"></div>
     </p>
	  <p><b>Current Courses: </b> 
        <form id="all_courses" onsubmit="return false;" method="post">
        <table class="small">
        <tr><td></td><td>
        <input type="submit" value="Display All Courses" onClick="showAllCourses()" >
        </td></tr>
      </table>
      </form>
      <div id="showAllCoursesDiv"></div>
      </p>
     </div>

     <div class="tabbertab">
	  <h2>Metrics </h2>
      <?php
        //Gather Metrics data
        $sql="select COUNT(*) from fb_users";
        $result=$db->Execute($sql);
        $num_users = $result->fields[0];
        $sql="select COUNT(*) from mlf2_entries";
        $result=$db->Execute($sql);
        $num_posts = $result->fields[0];
        $sql="select COUNT(*) from ajax_chat_messages";
        $result=$db->Execute($sql);
        $num_chat = $result->fields[0];
      ?>
	  <p>Number of total users: <?php echo $num_users;?> </p>
	  <p>Number of total forum posts: <?php echo $num_posts;?> </p>
	  <p>Number of total chats: <?php echo $num_chat;?></p>
	  <p>Documents History: <br>
      <textarea rows="15" cols="90" class="small">
        <?php $file = $_SERVER['DOCUMENT_ROOT'] . "studybuddies/w2box/w2box.log"; //Path to your *.txt file
              $contents = file($file);
              $string = implode($contents);
              echo $string; 
        ?>
       </textarea>
      </p>
     </div>

<?php if($reach_admin ==1): ?>
     <div class="tabbertab">
	  <h2>Reach Admin</h2>
	  <p><b>Add Reach Tutor:</b> 
        <form id="add_tutor" onsubmit="return false;" method="post">
        <table class="small">
        <tr>
            <td>
            &nbsp;&nbsp;&nbsp;ULink ID:
            </td><td>
            <input type="text" id="addTutorULink" name="addTutorULink"> 
            <script type ="text/javascript">
            var f1 = new LiveValidation("addTutorULink", { validMessage: " Good!", wait: 500 } );
            f1.add( Validate.Presence, 
                          { failureMessage: " Can't be empty! " } );
            f1.add( Validate.Presence );
            f1.add( Validate.Length, {minimum:7, maximum: 10});
            f1.add( Validate.Length );
            </script>
            </td>
        </tr>
        <tr><td></td><td>
        <input type="submit" value="submit" onClick="sendAddTutor()" >
        </td></tr>
      </table>
      </form>
      <div id="showAddTutor"></div>
      </p>
	  <p><b>Remove Reach Tutor:</b> 
        <form id="remove_tutor" onsubmit="return false;" method="post">
        <table class="small">
        <tr>
            <td>
            &nbsp;&nbsp;&nbsp;ULink ID:
            </td><td>
            <input type="text" id="removeTutorULink" name="removeTutorULink"> 
            <script type ="text/javascript">
            var f1 = new LiveValidation("removeTutorULink", { validMessage: " Good!", wait: 500 } );
            f1.add( Validate.Presence, 
                          { failureMessage: " Can't be empty! " } );
            f1.add( Validate.Presence );
            f1.add( Validate.Length, {minimum:7, maximum: 10});
            f1.add( Validate.Length );
            </script>
            </td>
        </tr>
        <tr><td></td><td>
        <input type="submit" value="submit" onClick="sendRemoveTutor()" >
        </td></tr>
      </table>
      </form>
      <div id="showRemoveTutor"></div>
      </p>
	  <p><b>Add Reach Admin:</b> 
        <form id="add_admin" onsubmit="return false;" method="post">
        <table class="small">
        <tr>
            <td>
            &nbsp;&nbsp;&nbsp;ULink ID:
            </td><td>
            <input type="text" id="addAdminULink" name="addAdminULink"> 
            <script type ="text/javascript">
            var f1 = new LiveValidation("addAdminULink", { validMessage: " Good!", wait: 500 } );
            f1.add( Validate.Presence, 
                          { failureMessage: " Can't be empty! " } );
            f1.add( Validate.Presence );
            f1.add( Validate.Length, {minimum:7, maximum: 10});
            f1.add( Validate.Length );
            </script>
            </td>
        </tr>
        <tr><td></td><td>
        <input type="submit" value="submit" onClick="sendAddAdmin()" >
        </td></tr>
      </table>
      </form>
      <div id="showAddAdmin"></div>
      </p>
	  <p><b>Remove Reach Admin:</b> 
        <form id="remove_admin" onsubmit="return false;" method="post">
        <table class="small">
        <tr>
            <td>
            &nbsp;&nbsp;&nbsp;ULink ID:
            </td><td>
            <input type="text" id="removeAdminULink" name="removeAdminULink"> 
            <script type ="text/javascript">
            var f1 = new LiveValidation("removeAdminULink", { validMessage: " Good!", wait: 500 } );
            f1.add( Validate.Presence, 
                          { failureMessage: " Can't be empty! " } );
            f1.add( Validate.Presence );
            f1.add( Validate.Length, {minimum:7, maximum: 10});
            f1.add( Validate.Length );
            </script>
            </td>
        </tr>
        <tr><td></td><td>
        <input type="submit" value="submit" onClick="sendRemoveAdmin()" >
        </td></tr>
      </table>
      </form>
      <div id="showRemoveAdmin"></div>
      </p>
      <p><b>Ban User:</b> 
        <form id="banUser" onsubmit="return false;" method="post">
        <table class="small">
        <tr>
            <td>
            &nbsp;&nbsp;&nbsp;Facebook ID:
            </td><td>
            <input type="text" id="banID" name="banID"> 
            <script type ="text/javascript">
            var f1 = new LiveValidation("banID", { validMessage: " Good!", wait: 500 } );
            f1.add( Validate.Presence, 
                          { failureMessage: " Can't be empty!" } );
            f1.add( Validate.Presence );
            f1.add( Validate.Length, {minimum:1, maximum: 12});
            f1.add( Validate.Length );
            f1.add( Validate.Numericality, { onlyInteger: true } );
            </script>
            </td>
        </tr>
        <tr><td></td><td>
        <input type="submit" value="submit" onClick="banUser()" >
        </td></tr>
      </table>
      </form>
      <div id="banUserDiv"></div>
      </p>
      <p><b>Unban User:</b>
        <form id="unbanUser" onsubmit="return false;" method="post">
        <table class="small">
        <tr>
            <td>
            &nbsp;&nbsp;&nbsp;Facebook ID:
            </td><td>
            <input type="text" id="unbanID" name="unbanID"> 
            <script type ="text/javascript">
            var f1 = new LiveValidation("unbanID", { validMessage: " Good!", wait: 500 } );
            f1.add( Validate.Presence, 
                          { failureMessage: " Can't be empty!" } );
            f1.add( Validate.Presence );
            f1.add( Validate.Length, {minimum:1, maximum: 12});
            f1.add( Validate.Length );
            f1.add( Validate.Numericality, { onlyInteger: true } );
            </script>
            </td>
        </tr>
        <tr><td></td><td>
        <input type="submit" value="submit" onClick="unbanUser()" >
        </td></tr>
      </table>
      </form>
      <div id="unbanUserDiv"></div>
     </p>
     </div>
<?php endif;?>
</div>
</body>
</html>
